package com.mlnx.device.service;

import com.mlnx.device.pojo.dto.DeviceStateRecord;

import java.util.Date;
import java.util.List;
import java.util.Map;
import java.util.Set;

/**
 * Created by amanda.shan on 2019/11/26.
 */
public interface DeviceStateService {

    /**
     * 保存设备状态
     *
     * @param deviceState
     */
    void saveDeviceState(DeviceStateRecord deviceState);

    /**
     * 获取设备上下线标记
     *
     * @param startTime
     * @param endTime
     * @param patientId
     * @return
     */
    Map<String, Object> getEcgMarks(Date startTime, Date endTime, Integer patientId);

    /**
     * 获取设备紧急呼叫记录
     *
     * @param startTime
     * @param endTime
     * @param patientId
     * @return
     */
    List<DeviceStateRecord> getEcgEvents(Date startTime, Date endTime, Integer patientId);


    /**
     * 一个月中设备运行的日期
     *
     * @param year
     * @param month
     * @param patientId
     * @return
     */
    Set<Date> getEcgExistedDays(Integer year, Integer month, Integer patientId);

}
